<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Keywords" content="cssfile">
<meta name="Description" content="">
<meta name="format-detection" content="telephone=no" />
<meta property="wb:webmaster" content="ed0a75e93ed55263" />
<meta name="renderer" content="webkit">
<title> 好乐买 正品鞋</title>
<link rel="shortcut icon" href="http://0.js.lx.okbuycdn.com/resources/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="{{asset('/HomeCss/css/login.css')}}">
<script type="text/javascript" src="{{asset('/HomeCss/js/jquery-1.9.0.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/jquery.validate.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/jquery.form.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/miniheader.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/inputstyle.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/logincheck.js')}}"></script>
</head>
<body>
<div class="miniheader">
    <div class="miniheaderLeft"><a href="/"><img src="{{asset('/HomeCss/picture/miniheaderlogo.png')}}" alt='okbuy'></a></div>
	<div class="miniheaderMiddle" style="width:250px;float:left;margin:10px 0px 0px 300px;color:red;">
       @if(session('error'))
            <span>{{session('error')}}</span>
        @endif
    </div>
    <div class="miniheaderRight">
        <cite id="top_nologin" style="display: inline-block;">
    	<a href="/home/login/login" title="">登录</a><span>|</span>
		<a href="/home/login/regist" title="">注册</a>
    </div>
</div><!--[if IE 6]>
<script> document.execCommand("BackgroundImageCache", false, true); </script>
<![endif]-->
<div class="loginwarpper">
	<form class="find_1" id="getpwdform" name="getpwdform" action="/home/login/findpw" method="post">
	    {{csrf_field()}}
	    <img src="http://0.js.lx.okbuycdn.com/resources/images/v6/common/findpw.gif">
	        <p class="email">请输入手机号：</p>
			<div class="login_txt">
				<input name="account" id="account" value="" type="text">
				<label id="usernameError" class="error"></label>
			</div>

	        <p class="email">请输入验证码：</p>
			<div class="find_txt" style="position:relative">
			<div class="find_txt_left"><img src="/home/login/vcode" onclick="this.src=this.src+'?a=1'" style="height:31px;width:76px"></div>
				<input name="validate" id="validate" type="text" maxlength="5">
				<label id="codeError" class="error"></label>
			</div>

        <button  class="next_btn" value="" id="next_btn" type="submit">下一步</button>
    </form>
    <div class="OB_clearB"></div>
</div> 
	<script type="text/javascript">
		new dk_slideplayer("#pub_slideplay",{width:"474px",height:"588px",time:"4000",float:"left"});
	</script><div class="OB_clearB"></div>
<div class="minifooter">Copyright © 2007-2017 OkBuy.com All Rights Reserved&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;天津好乐买信息技术有限公司&nbsp;&nbsp;津B2-20140020&nbsp;&nbsp;京公网安备&nbsp;110105006859</div>
<script type="text/javascript">
	//声明全局变量
    var CUSER = false;
    var CCODE = false;
    
    //绑定表单事件
    $('form').submit(function(){
        //触发所有的丧失焦点事件
        $('input').trigger('blur');
        //判断是否全部成功
        if(CUSER && CCODE ){
            return true;
        }

        return false;
    })

	//用户名丧失焦点事件
    $('input[name=account]').blur(function(){
        // 获取输入的值

        var account = $(this).val();
        if(!account){
            $('#usernameError').html('请输入手机号');
            CUSER = false;
            return false;
        }else{
        	$('#usernameError').html('');
        	CUSER = true;
        }
            
    })

    //验证码丧失焦点事件
    $('input[name=validate]').blur(function(){
        // 获取输入的值
        var validate = $(this).val();
       	if(!validate){
        	$('#codeError').html('请填写验证码');
            return false;
        }else{
        	$('#codeError').html('');
            CCODE = true;
        }
    })
</script>
</body>

</html> 
